//1.导入插件
import { createStore } from "vuex";
import mutations from "./mutations";
import actions from "./actions";
import getters from "./getters";
//mutation唯一的目的就是修改state,每一个方法完成的事件金啃单一一点
//修改state必须通过mutations
//2.创建store对象并导出
const state = {
    cartList: []
}
export default createStore({
    state,
    mutations,
    actions,
    getters,
})

//3.去vue实例上挂载